﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.Xml.Schema;
using System.Xml;

namespace AirLinq.Meta {
	public class MetaModel  {
		private readonly List<MetaTypeTemplate> _metaTypes;
		public MetaModel() {
			_metaTypes = new List<MetaTypeTemplate>();
		}
		public List<MetaTypeTemplate> MetaTypes {
			get {
				return _metaTypes;
			}
		}
		public MetaType[] GetMetaType(Type sourceType) {
			return _metaTypes
				.OfType<MetaType>()
				.Where(c => c.DeclareType == sourceType)
				.ToArray();
		}

	}
}
